projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
681afb7
)
Don't segfault if somebody tries to popup an unrealized combo box.
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 30 Mar 2005 17:09:13 +0000
(17:09 +0000)
committer
Matthias Clasen
<matthiasc@src.gnome.org>
Wed, 30 Mar 2005 17:09:13 +0000
(17:09 +0000)
2005-03-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
segfault if somebody tries to popup an unrealized
combo box. (#172031, Felipe Heidrich)
gtk/gtkcombobox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcombobox.c
b/gtk/gtkcombobox.c
index 8fd4a77807e4c6092443cd2d39b6168f071a2a6b..11d85358cb4fdd978173269cae7944693cd2abf3 100644
(file)
--- a/
gtk/gtkcombobox.c
+++ b/
gtk/gtkcombobox.c
@@
-1590,6
+1590,9
@@
gtk_combo_box_popup (GtkComboBox *combo_box)
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
+ if (!GTK_WIDGET_REALIZED (combo_box))
+ return;
+
if (GTK_WIDGET_MAPPED (combo_box->priv->popup_widget))
return;